import request from '@/utils/request'

// 查询工位自检结果列表
export function listResult(query) {
  return request({
    url: '/mes/station/stationCheck/list',
    method: 'get',
    params: query
  })
}

// 查询工位自检结果详细
export function getResult(id) {
  return request({
    url: '/mes/pro/self/inspection/result' + id,
    method: 'get'
  })
}

// 新增工位自检结果
export function addResult(data) {
  return request({
    url: '/mes/pro/self/inspection/result',
    method: 'post',
    data: data
  })
}

// 修改工位自检结果
export function updateResult(data) {
  return request({
    url: '/mes/pro/self/inspection/result',
    method: 'put',
    data: data
  })
}

// 删除工位自检结果
export function delResult(id) {
  return request({
    url: '/mes/pro/self/inspection/result' + id,
    method: 'delete'
  })
}


export function editPushDown(data) {
  return request({
    url: '/mes/station/stationCheck/editPushDown',
    method: 'put',
    data: data
  })
}


export function checkDetailList(query) {
  return request({
    url: '/mes/station/stationCheckDetail/list',
    method: 'get',
    params: query
  })
}
// 审核接口
export function checkExamine(data) {
  return request({
    url: '/mes/station/stationCheck/editExamine',
    method: 'put',
    data: data
  })
}